(function(d, c) {
    var e = d.documentElement,
        a = "orientationchange" in window ? "orientationchange" : "resize",
        b = function() {
            var f = e.clientWidth;
            if (!f) {
                return
            }
            if (f >= 800) {
                e.style.fontSize = "30px"
            } else {
                e.style.fontSize = 30 * (f / 800) + "px"
            }
        };
    if (!d.addEventListener) {
        return
    }
    b();
    c.addEventListener(a, b, false);
    d.addEventListener("DOMContentLoaded", b, false)
})(document, window);